/********************General information******************************************
*Author: David Roberto Bellomo Gomez
*Date: 05/26/13
*File: Platform_Serial_Manager.h
**********************File description********************************************
*Version: 1.0
*Description: This file provides the definitios for use the appis for the Manager.
*********************Change historial**********************************************
*Author:
*Date:
*Description of the change 
***********************************************************************************/


/*Manager States*/
#define SeriaMng_NOINITstate    0x00u
#define SerialMng_INITstate     0x01u
#define SerialMng_IDLEstate     0x02u
#define SerialMng_TRANSMITstate 0x03u
#define SerialMng_RECIVINGstate 0x04u
#define SerialMng_STOPstate     0x06u
#define SerialMng_CHEKINGstate  0x07u

/*Mask for pending flag*/
#define TRANSMITPENDING 0x01u
#define RECIVINGPENDING 0x02u  //Must only ocupy one bit

/*Macro defining*/
#define m_setReadWritePendinFlag(flag) (flag ? PendingFlags = RECIVINGPENDING :   PendingFlags = TRANSMITPENDING)
#define m_CheckPendingFlag(Mask) PendingFlags & Mask


/*Type definitions*/
typedef  unsigned byte ManagerState_Type
typedef  unsigned byte PendingFlag_Type;



/*Function prototype*/

extern void SerialMng_Init(long l_pL_BaudRate);


